package com.yizhuoyan.his.ao;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * 药品收费Ao
 * author:ZJH
 */
@Data
public class NodrugChargeModifyAo {
    //项目编码
    @Length(max = 64, message = "项目名称长度不能大于{max}")
    private String code;
    //项目名称
    @Length(max = 64, message = "项目名称长度不能大于{max}")
    private String name;
    //项目规格
    @Length(max = 64, message = "项目规格长度不能大于{max}")
    private String specification;
    //项目价格
    @Pattern(regexp = "^[\\d]+$",message = "项目价格格式错误")
    private String unitPrice;
    //所属费用科目ID
    @Pattern(regexp = "^[\\d]+$",message = "所属费用科目ID格式错误")
    private String expenseCategoryId;
    //执行科室ID
    @Pattern(regexp = "^[\\d]+$",message = "执行科室id格式错误")
    private String departmentId;
}
